﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySoft.Data;
using System.Data;
using ShareMarking.Entity;

namespace ShareMarking.Service
{
    public class qr_StoreService : BaseDao<qr_Store>
    {
        #region "单例"
        private static qr_StoreService service;
        public static qr_StoreService Instance
        {
            get
            {
                if (service == null)
                {
                    service = new qr_StoreService();
                }
                return service;
            }
        }
        #endregion

        #region 分页方法
        public DataTable Get_qr_Store_PageSelect(int pageNo, int pageSize,
                     string sort, out int totalCount,string S_Name)
        {
            WhereClip whereClip = new WhereClip("");

            //like
            if (whereClip.ToString().Length > 0)
            {
                //whereClip = WhereClip.Bracket(whereClip);//新版框架这句已经可以不要
            }
            if (!S_Name.IsNullOrEmpty())
            {
                whereClip = whereClip && qr_Store._.StoreCode == S_Name;
            }   
            return Get_Entity_byPage_ToTable(pageNo, pageSize, whereClip, new OrderByClip(sort), out totalCount);


        }
        #endregion
    }

}

